<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <title>Floating labels example for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.bootcss.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet"/>
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style type="text/css" rel="stylesheet">
        :root {
            --input-padding-x: .75rem;
            --input-padding-y: .75rem;
        }

        html,
        body {
            height: 100%;
        }

        .form-signin {
            width: 100%;
            max-width: 420px;
            padding: 15px;
            margin: 0 auto;
        }

        .form-label-group {
            position: relative;
            margin-bottom: 1rem;
        }

        .form-label-group > input,
        .form-label-group > label {
            padding: var(--input-padding-y) var(--input-padding-x);
        }

        .form-label-group > label {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            width: 100%;
            margin-bottom: 0;
            line-height: 1.5;
            color: #495057;
            border: 1px solid transparent;
            border-radius: .25rem;
            transition: all .1s ease-in-out;
        }

        .form-label-group input::-webkit-input-placeholder {
            color: transparent;
        }

        .form-label-group input:-ms-input-placeholder {
            color: transparent;
        }

        .form-label-group input:-ms-input-placeholder {
            color: transparent;
        }

        .form-label-group input::-moz-placeholder {
            color: transparent;
        }

        .form-label-group input::placeholder {
            color: transparent;
        }

        .form-label-group input:not(:placeholder-shown) {
            padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
            padding-bottom: calc(var(--input-padding-y) / 3);
        }

        .form-label-group input:not(:placeholder-shown) ~ label {
            padding-top: calc(var(--input-padding-y) / 3);
            padding-bottom: calc(var(--input-padding-y) / 3);
            font-size: 12px;
            color: #777;
        }
    </style>

</head>

<body>
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom box-shadow">
    <h5 class="my-0 mr-md-auto font-weight-normal">快马跑腿</h5>
    <nav class="my-2 my-md-0 mr-md-3">
        <a class="p-2 text-dark" th:href="@{/order/index}" >首页</a>
        <a class="p-2 text-dark" th:href="@{/order/addForSell}">帮我买</a>
        <a class="p-2 text-dark" th:href="@{/order/addForDeliver}">帮我送</a>
        <a class="p-2 text-dark" th:href="@{/order/addForTake}">帮我取</a>
        <td>
            <a class="p-2 text-dark"  th:if="${session.customer.type ==1}" th:href="@{/client/aboutUs}">关于我们</a>
            <a class="p-2 text-dark"  th:if="${session.customer.type ==2}" th:href="@{/order/list}">我的配送</a>

        </td>
    </nav>
    <nav id="navbar-example2" class="navbar navbar-light bg-light">
        <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" th:text="${customer.nickname}">Dropdown</a>
        <div class="dropdown-menu">
            <a class="dropdown-item" th:href="@{/client/info}">个人信息</a>
            <a class="dropdown-item" th:href="@{/order/myOrder}">我的订单</a>
            <div role="separator" class="dropdown-divider"></div>
            <a class="dropdown-item" th:href="@{/publiz/index}">注销</a>
        </div>
    </nav>
</div>

<div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
    <h1 class="display-4">快马跑腿</h1>
    <p class="lead">1 to 1 professional service, send faster, do more</p>
</div>

<form class="form-signin" th:action="@{/order/addForTake}" method="post">
    <div class="text-center mb-4">
        <h1 class="h3 mb-3 font-weight-normal">下单页面(帮我取)</h1>
        <div th:if="${Msg} != null" id="myAlert" class="alert alert-danger" data-dismiss="alert"
             th:text="${Msg}">
        </div>
    </div>
    <div class="form-label-group">
        <input type="text" id="consignee" name="consignee" class="form-control" placeholder="Email address"/>
        <label for="consignee">收货人姓名</label>
    </div>
    <div class="form-label-group">
        <input type="number" id="consigneeMobile" name="consigneeMobile" class="form-control"
               placeholder="Email address"/>
        <label for="consigneeMobile">收货人电话</label>
    </div>
    <div class="form-label-group">
        <input type="text" id="pickupAddress" name="pickupAddress" class="form-control" placeholder="Email address"/>
        <label for="pickupAddress">取货地址</label>
    </div>
    <div class="form-label-group">
        <input type="text" id="goods" name="goods" class="form-control" placeholder="Email address"/>
        <label for="goods">获取物品</label>
    </div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">下单</button>

    <p class="mt-5 mb-3 text-muted text-center" th:text="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd hh:mm:ss')}">&copy; 2017-2018</p>

</form>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>

</body>
</html>
